package cn.edu.xmist.strategy;

public class Context {
    /**
     * 算法
     */
    private AbstractStrategy strategy;

//    public Context(AbstractStrategy strategy) {
//        this.strategy = strategy;
//    }

    public void setStrategy(AbstractStrategy strategy) {
        this.strategy = strategy;
    }

    public float getPrise(float km) {
        return strategy.prise(km);
    }
}
